<?php
/**
 * Created by PhpStorm.
 * User: ZCY
 * Date: 2018/12/28
 * Time: 16:38
 */
namespace api\controllers;
use common\behavior\AccessBehavior;
use yii\web\Controller;

class BehaviorController extends Controller
{
    //public $enableCsrfValidation = false;

     //配置控制器需要使用的行为
    public function behaviors()
    {
        return [
            'accessBehavior' => [
                'class' => AccessBehavior::class,
            ],
        ];
    }


    public function actionTest()
    {
       echo "hello behavior";
       //phpinfo();
    }




}
